package com.farm.kaiping.entity;

import java.time.LocalDateTime;
import java.util.List;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 字典项(SysDictItem)表实体类
 *
 * @author zhuhui
 * @since 2024-11-26 22:58:21
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel("字典项")
@TableName("sys_dict_item")
public class SysDictItem extends Model<SysDictItem> {
	/**
	 * 编号ID
	 */
	@ApiModelProperty("编号ID")
	@TableId(value = "id",type = IdType.AUTO)
	private Integer id;
	/**
	 * 字典ID
	 */
	@ApiModelProperty("字典ID")
	private Integer dictId;
	/**
	 * 字典标识
	 */
	@ApiModelProperty("字典标识")
	private String identify;
	/**
	 * 字典项的值
	 */
	@ApiModelProperty("字典项的值")
	private String value;
	/**
	 * 字典项的文本
	 */
	@ApiModelProperty("字典项的文本")
	private String label;
	/**
	 * 字典项的类型
	 */
	@ApiModelProperty("字典项的类型")
	private String type;
	/**
	 * 字典项的描述
	 */
	@ApiModelProperty("字典项的描述")
	private String description;
	/**
	 * 字典项的排序
	 */
	@ApiModelProperty("字典项的排序）")
	private Integer sort;
	/**
	 * 创建时间
	 */
	@ApiModelProperty("创建时间")
	private LocalDateTime createTime;
	/**
	 * 更新时间
	 */
	@ApiModelProperty("更新时间")
	private LocalDateTime updateTime;
	/**
	 * 备注
	 */
	@ApiModelProperty("备注")
	private String remarks;
	/**
	 * 是否删除(0否1是)
	 */
	@ApiModelProperty("是否删除(0否1是)")
	@TableLogic(value = "0",delval = "1")
	private Integer delFlag;
	/**
	 * 所属租户
	 */
	@ApiModelProperty("所属租户")
	private Integer tenantId;
	/**
	 * 字典颜色
	 */
	@ApiModelProperty("字典项的颜色")
	private String color;

	/**
	 * 分组名称
	 */
	@ApiModelProperty("分组名称")
	@TableField(exist = false)
	private String dictName;
	/**
	 * 分组子集
	 */
	@ApiModelProperty("分组子集")
	@TableField(exist = false)
	private List<SysDictItem> children;


}

